
<form id="form_edit">
<input type="hidden" name="id" value="{[$smarty.request.id]}" />
  <table>
	<tr>
		<td width="20%" align="right">啤工：</td>
		<td width="30%"><input type="text" name="worker" id="worker" size="12" value="{[$result.emp]}:{[$result.emp_t]}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
		<td width="20%" align="right">日期：</td>
		<td width="30%"><input type="text" name="date" id="date" value="{[$result.date]}" size="12"></td>
	</tr>
	<tr>
		<td align="right">产品：</td>
		<td><input type="text" name="mold" id="mold" size="20" value="{[$result.mold]}:{[$result.mold_t]}" title="{[$t.mold]}"></td>
		<td align="right">类型：</td>
		<td><select name='type'>
			{[html_options options=$type_option selected=$result.type]}
		</select></td>
	</tr>
	<tr>
		<td align="right">机器：</td>
		<td colspan="3"><input type="text" name="machine" id="machine" size="30" value="{[$result.machine]}:{[$result.machine_t]}"></td>
	</tr>
	<tr>
		<td align="right">穴数：</td>
		<td><input type="text" name="cavity" size="12" value="{[$result.cavity]}"></td>
		<td align="right">净重：</td>
		<td><input type="text" name="weight1" size="12" value="{[$result.weight1]}"> 克/啤</td>		
	</tr>
	<tr>
		<td align="right">周期：</td>
		<td><input type="text" name="period" size="12" value="{[$result.period]}"> 秒</td>
		<td align="right">毛重：</td>
		<td><input type="text" name="weight2" size="12" value="{[$result.weight2]}"> 克/啤</td>
	</tr>
	<tr>
		<td align="right">原料+色粉：</td>
		<td colspan="3"><input type="text" name="material" size="40" value="{[$result.material]}"></td>		
	</tr>
	<tr>		
		<td align="right">顔色：</td>
		<td><input type="text" name="color" size="12" value="{[$result.color]}"></td>
		<td align="right">数量：</td>
		<td><input type="text" name="amount" size="12" value="{[$result.amount]}"> 个</td>
	</tr>
	<tr>
		<td align="right">开始时间：</td>
		<td colspan="3"><input type="text" name="date1" id="date1" size="10" value="{[$result.t1|date_format:'%Y-%m-%d']}">
		<input type="text" name="time1" id="time1" size="6" value="{[$result.t1|date_format:'%H:%M']}"></td>
	</tr>
	<tr>
		<td align="right">结束时间：</td>
		<td colspan="3"><input type="text" name="date2" id="date2" size="10" value="{[$result.t2|date_format:'%Y-%m-%d']}">
		<input type="text" name="time2" id="time2" size="6" value="{[$result.t2|date_format:'%H:%M']}"></td>
	</tr>	
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<div style="margin-top:10px; width:610px;float:left;">
<div id="myGrid" style="width:100%;height:160px;"></div>
<table border="0">
	<tr>
		<td width="430" align="right">合计：</td>
		<td><div id="total_t">{[$result.total]}</div></td>
	</tr>
</table>
</div>

<script type='text/javascript'>
var data = {[$result.item]};
</script>

<script type="text/javascript" src="js/zs/plan/add.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/zs/plan/edit.js?r={[$smarty.now]}"></script>
